function submitform()
{
	val = document.getElementById("t").value;
	alert(val);
	var req=null;
	if(window.XMLHttpRequest) 
		{
		req = new XMLHttpRequest();
		}
	else if(window.ActiveXObject) {
		req = new ActiveXObject("Microsoft.XMLHTTP");
		}
	req.onreadystatechange = function()
	{
		if(req.readyState==4){
			document.ajax.dyn.value = req.responseText;
			 value1= req.responseText;
			if(val==value1)
				alert("okay");
		}
			else
			document.ajax.dyn.value = "Error :" + req.status;
	}
	req.open("GET","ajax-test.txt",true);
	req.send();
}